// 入口文件，要打包的文件都必须和入口文件产生联系
import './css/index.css'
import './less/index.less'
import runImg from './assets/1.gif'
import logoImg from './assets/logo_small.png'
import './assets/fonts/iconfont.css'

// 隔行变色
const odd = document.querySelectorAll('li:nth-child(odd)')
const even = document.querySelectorAll('li:nth-child(even)')
for (let i = 0; i < odd.length; i++){
  odd[i].style.color = 'pink'
}
for (let i = 0; i < even.length; i++){
  even[i].style.color = 'skyblue'
} 

// 插入图片
const img1 = document.createElement('img')
img1.src = runImg
document.body.appendChild(img1)

const img2 = document.createElement('img')
img2.src = logoImg
document.body.appendChild(img2)

// 字体图标
const i = document.createElement('i')
i.classList.add('iconfont', 'icon-qq')
document.body.appendChild(i)
const ii = document.createElement('i')
ii.classList.add('iconfont', 'icon-weixin')
document.body.appendChild(ii)

